package cn.hdu.liang.core.dao.user;

import java.util.List;

import cn.hdu.liang.core.bean.user.Employee;
import cn.hdu.liang.core.query.user.EmployeeQuery;

public interface EmployeeDao {

    //添加
    public Integer addEmployee(Employee employee);

    //根据主键查找
    public Employee getEmployeeByKey(String id);

    //根据主键批量查找
    public List<Employee> getEmployeesByKeys(List<String> idList);

    //根据主键删除
    public Integer deleteByKey(String id);

    //根据主键批量删除
    public Integer deleteByKeys(List<String> idList);

    //根据主键更新
    public Integer updateEmployeeByKey(Employee employee);

    //分页查询
    public List<Employee> getEmployeeListWithPage(EmployeeQuery employeeQuery);

    //集合查询
    public List<Employee> getEmployeeList(EmployeeQuery employeeQuery);

    //总条数
    public int getEmployeeListCount(EmployeeQuery employeeQuery);
}
